<template>
  <view :style="themeColor">
    <view class="page">
      <fu-custom bgColor="bg-white" :isBack="true" :isBottom="true">
        <block slot="content">取货人列表</block>
      </fu-custom>

      <view class="flex flex-direction align-stretch benben-flex-layout consigners_flex_1">
        <template v-for='(item,key0) in dataList'>
          <view class='flex flex-direction align-stretch consigners_fd1_0' :key='key0'>
            <view class='flex flex-wrap align-baseline consigners_fd1_0_c0'>
              <text class='consigners_fd1_0_c0_c0'>{{item.name}}</text>
              <text class='flex-sub consigners_fd1_0_c0_c1'>{{item.mobile}}</text>
            </view>
            <view class='flex align-center justify-between consigners_fd1_0_c1'>
              <view class='flex flex-wrap align-center'>
                <image class='consigners_fd1_0_c1_c0_c0' mode="aspectFit" :src='STATIC_URL+"3.png"'
                  v-if=" item.is_default=='1'"></image>
                <image class='consigners_fd1_0_c1_c0_c0' mode="aspectFit" :src='STATIC_URL+"135.png"'
                  v-if=" item.is_default==0"></image>
                <text class='consigners_fd1_0_c1_c0_c1' v-if=" item.is_default=='1'">默认</text><text
                  class='consigners_fd1_0_c1_c0_c1' v-if=" item.is_default==0">设为默认</text>
              </view>
              <view class='flex flex-wrap align-center'>
                <view class='flex flex-wrap align-center'>
                  <image class='consigners_fd1_0_c1_c1_c0_c0' mode="aspectFit" :src='STATIC_URL+"6.png"'></image>
                  <text class='consigners_fd1_0_c1_c1_c0_c1'>删除</text>
                </view>
                <view class='flex flex-wrap align-center consigners_fd1_0_c1_c1_c1' @tap.stop="handleJumpDiy"
                  data-type="navigateTo" :data-url="`/pages/wd/addConsign/addConsign?id=${item.aid}`">
                  <image class='consigners_fd1_0_c1_c1_c0_c0' mode="aspectFit" :src='STATIC_URL+"7.png"'></image>
                  <text class='consigners_fd1_0_c1_c1_c0_c1'>编辑</text>
                </view>
              </view>
            </view>
          </view>
        </template>
        <fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData"
          :listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
      </view>


      <benben-popup v-model="popupShow1661425659576" :mask="true" :mask-close-able="true" mode='center'>
        <!---删除地址弹窗flex布局开始-->
        <view class="flex flex-direction flex-wrap align-center consigners_flex_2">
          <text class='consigners_fd2_0'>提示</text>
          <text class='consigners_fd2_1'>确定删除地址？</text>
          <view class='flex align-center consigners_fd2_2'>
            <button class='consigners_fd2_2_c0'>取消</button>
            <button class='consigners_fd2_2_c1'>确定</button>
          </view>
        </view>

        <!---删除地址弹窗flex布局结束-->

      </benben-popup>
      <benben-popup v-model="popupShow1691999555617" :mask="true" :mask-close-able="true" mode='center'>
        <!---删除地址弹窗flex布局开始-->
        <view class="flex flex-direction flex-wrap align-center consigners_flex_3">
          <text class='consigners_fd3_0'>提示</text>
          <text class='consigners_fd3_1'>确定删除地址？</text>
          <view class='flex align-center consigners_fd3_2'>
            <button class='consigners_fd3_2_c0'>取消</button>
            <button class='consigners_fd3_2_c1'>确定</button>
          </view>
        </view>

        <!---删除地址弹窗flex布局结束-->

      </benben-popup>
      <view class="flex benben-position-layout flex flex-wrap align-center consigners_flex_4">
        <button class='consigners_fd4_0' @tap.stop="handleJumpDiy" data-type="navigateTo"
          :data-url="`/pages/wd/addConsign/addConsign`">添加取货人</button>

      </view>
      <view :style="{height: '88rpx'}"></view>


    </view>
  </view>
</template>
<script>
  import pagingList from '@/common/mixin/paging_list.js';
  import {
    validate
  } from '@/common/utils/validate.js'
  export default {
    components: {},
    mixins: [pagingList],

    data() {
      return {
        "popupShow1691999555617": false,
        "popupShow1661425659576": false,
        "minixPagingListsApi": "",
        "pageingListApiMethod": "",
        "allowOnloadGetList": false,
        "dataList": [],
        "is_change": ""
      };
    },
    computed: {
      themeColor() {
        return this.$store.getters.themeColor
      },

    },
    watch: {},
    onLoad(options) {
      let {
        is_change
      } = options
      if (is_change !== undefined) this.is_change = is_change
      this.getListFunc()
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {
      this.getListFunc()
    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      //自提人列表
      getListFunc() {
        this.minixPagingListsApi = global.apiUrls.post64633f306c07a;
        this.pageingListApiMethod = 'post';
        this.allowOnloadGetList = false;
        this.pagingListPostDataContent = {}
        this.listData = [];
        this.dataList = this.listData;
        this.pagingListToggle();

      },
      pagingListPostData() {
        return this.pagingListPostDataContent
      }
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: #F8F8F8;
    background-size: 100% auto;
  }

  .consigners_flex_0 {
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .consigners_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 500;
    color: #333;
  }

  .consigners_fd0_0_c0_c0 {
    font-size: 32rpx;
    font-weight: 500;
    color: #333;
  }

  .consigners_fd0_0_c0 {
    width: 180rpx;
  }

  .consigners_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
    line-height: 88rpx;
  }

  .consigners_flex_1 {
    border-top: 1px solid #F6F7F9;
    background: transparent;
    background-size: 100% auto !important;
    padding: 0rpx 0rpx 0rpx 0rpx;
    margin: 0rpx 0rpx 20rpx 0rpx;
  }

  .consigners_fd1_0_c1_c1_c1 {
    margin: 0rpx 0rpx 0rpx 67rpx;
  }

  .consigners_fd1_0_c1_c1_c0_c1 {
    line-height: 28rpx;
    font-size: 28rpx;
    font-weight: 400;
    color: #666666;
  }

  .consigners_fd1_0_c1_c1_c0_c0 {
    width: 30rpx;
    height: 30rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
    margin: 0rpx 12rpx 0rpx 0rpx;
  }

  .consigners_fd1_0_c1_c0_c1 {
    line-height: 32rpx;
    font-size: 28rpx;
    font-weight: 400;
    color: rgba(102, 102, 102, 1);
  }

  .consigners_fd1_0_c1_c0_c0 {
    width: 36rpx;
    height: 36rpx;
    margin: 0rpx 14rpx 0rpx 0rpx;
  }

  .consigners_fd1_0_c1 {
    border-top: 1px solid #eee;
    padding: 32rpx 0rpx 0rpx 0rpx;
  }

  .consigners_fd1_0_c0_c1 {
    line-height: 40rpx;
    font-size: 28rpx;
    font-weight: 700;
    color: rgba(26, 26, 26, 1);
    margin: 0rpx 0rpx 0rpx 24rpx;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
  }

  .consigners_fd1_0_c0_c0 {
    line-height: 40rpx;
    font-size: 28rpx;
    font-weight: 700;
    color: #1A1A1A;
    max-width: 290rpx;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
  }

  .consigners_fd1_0_c0 {
    margin: 0rpx 0rpx 32rpx 0rpx;
  }

  .consigners_fd1_0 {
    background: var(--benbenbgColor1);
    margin: 0rpx 0rpx 20rpx 0rpx;
    background-size: 100% auto;
    padding: 32rpx;
  }

  .consigners_flex_2 {
    background: #fff;
    margin: 0rpx 105rpx 0rpx 105rpx;
    background-size: #eee;
    border-radius: 25rpx 25rpx 25rpx 25rpx;
    padding: 40rpx 0rpx 0rpx 0rpx;
  }

  .consigners_fd2_2_c1 {
    background: transparent;
    line-height: 110rpx;
    border-radius: 0rpx 0rpx 16rpx 0rpx;
    font-size: 32rpx;
    color: var(--benbenFontColor5);
    width: 270rpx;
    height: 110rpx;
  }

  .consigners_fd2_2_c0 {
    border-right: 1px solid #EEEEEE;
    background: transparent;
    border-radius: 0rpx 0rpx 0rpx 16rpx;
    font-size: 32rpx;
    color: rgba(153, 153, 153, 1);
    height: 110rpx;
    line-height: 110rpx;
    width: 270rpx;
  }

  .consigners_fd2_2 {
    border-top: 1px solid #eee;
  }

  .consigners_fd2_1 {
    font-size: 32rpx;
    font-weight: 400;
    line-height: 52rpx;
    color: #333333;
    margin: 40rpx 0rpx 39rpx 0rpx;
  }

  .consigners_fd2_0 {
    color: #333333;
    font-size: 32rpx;
    font-weight: 500;
    line-height: 45rpx;
  }

  .consigners_flex_3 {
    background: #fff;
    margin: 0rpx 105rpx 0rpx 105rpx;
    background-size: #eee;
    border-radius: 25rpx 25rpx 25rpx 25rpx;
    padding: 40rpx 0rpx 0rpx 0rpx;
  }

  .consigners_fd3_2_c1 {
    background: var(--benbenbgColor1);
    line-height: 110rpx;
    border-radius: 0rpx 0rpx 16rpx 0rpx;
    font-size: 32rpx;
    color: var(--benbenFontColor5);
    width: 270rpx;
    height: 110rpx;
  }

  .consigners_fd3_2_c0 {
    border-right: 1px solid #EEEEEE;
    background: transparent;
    border-radius: 0rpx 0rpx 0rpx 16rpx;
    font-size: 32rpx;
    color: rgba(153, 153, 153, 1);
    height: 110rpx;
    line-height: 110rpx;
    width: 270rpx;
  }

  .consigners_fd3_2 {
    border-top: 1px solid #eee;
  }

  .consigners_fd3_1 {
    font-size: 32rpx;
    font-weight: 400;
    line-height: 52rpx;
    color: #333333;
    margin: 40rpx 0rpx 39rpx 0rpx;
  }

  .consigners_fd3_0 {
    color: #333333;
    font-size: 32rpx;
    font-weight: 500;
    line-height: 45rpx;
  }

  .consigners_flex_4 {
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    bottom: calc(48rpx + var(--window-bottom));
  }

  .consigners_fd4_0 {
    background: var(--benbenbgColor7);
    border-radius: 44rpx;
    width: 686rpx;
    line-height: 88rpx;
    font-size: 32rpx;
    color: #fff;
    margin: 0rpx auto 0rpx auto;
  }
</style>